//
//  NTESSDKConfig.m
//  NIM
//
//  Created by amao on 5/9/16.
//  Copyright © 2016 Netease. All rights reserved.
//

#import "NTESSDKConfigDelegate.h"
#import "NTESBundleSetting.h"


// THOMAS
// 修改为只显示群禁言的通知消息
@implementation NTESSDKConfigDelegate
- (BOOL)shouldIgnoreNotification:(NIMNotificationObject *)notification
{
    BOOL ignore = YES;
    NIMTeamNotificationContent *content = (NIMTeamNotificationContent *)[notification content];
    id attachment = [content attachment];
    if ([attachment isKindOfClass:[NIMUpdateTeamInfoAttachment class]]) {
        NIMUpdateTeamInfoAttachment *teamAttachment = (NIMUpdateTeamInfoAttachment *)attachment;
        if ([teamAttachment.values count] == 1) {
            NIMTeamUpdateTag tag = [teamAttachment.values allKeys];
            if (tag == NIMTeamUpdateTagMuteMode) {
                ignore = NO;
            }
                                     
        }
    }
    
    return ignore;
}
@end
